home *** CD-ROM | disk | FTP | other *** search
- Path: news.sover.net!news
- From: mountain@sover.net (Steve Mount)
- Newsgroups: comp.lang.c
- Subject: Re: 132x50 textmode
- Date: 17 Mar 1996 15:12:02 GMT
- Organization: SoVerNet, Inc.
- Message-ID: <4iha42$680@thrush.sover.net>
- References: <4i9r2a$muv@oslo-nntp.eunet.no>
- NNTP-Posting-Host: pm0a6.mid.sover.net
- Mime-Version: 1.0
- Content-Type: Text/Plain; charset=US-ASCII
- X-Newsreader: WinVN 0.99.7
-
- In article <4i9r2a$muv@oslo-nntp.eunet.no>, blarsen@login.eunet.no says...
- >
- >Can anyone tell me how to set 132x50 text mode with C or c++ or asm ??
- >I have a ati mach 64 card..
- >In the reference it says 010ah = 132x50 ?
- >But how can i set it ??
-
- I think this would do it in my MS compiler:
-
- ...
- union REGS i, o;
- ..
- i.h.ah = 0;
- i.h.al = 0x10a; // eh?
- int86(0x10,&i,&o);
- ...
-
-
- I'm curious, though, about the mode number. It should be only one byte,
- as far as I know. My graphics card docs only give values up to 75.
- The values assigned to i.h.al should be just one byte - I think there
- might be some conversion of overwriting if you use a two-byte value. You
- may want to double check your card docs. And if you're not using an MS
- compiler, I'm sure other compilers have calls similar to int86...
-
- +============================================================================+
- | Steve Mount, Software Engineer Work: sjjm@hawkeye.idx.com |
- | CIS: 73720,3404 MSN: S_Mountain Home: mountain@sover.net |
- | AOL: Mountain |
- | WWW: http://www.sover.net/~mountain/ "Fight, Win, Prevail!" |
- +============================================================================+
-
-